Repository navigation
cli: name a next step in refusal messages and drop the baseline fragments - #11713
Conversation
…ents Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmp1dk37XMDiDt4z11j
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 22 minutes. View limit details
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm exact-string assertions and consumers outside the shown tests may require coordinated updates when refusal text changes.
- Confirm the cited local proof covers only three refusal-next-step tests, while this diff changes exact output across many CLI modules and deletes 40 baseline files; those focused assertions do not prove the broader regression surface.
- Confirm deleting every refusal-next-step baseline fragment assumes the policy scanner no longer treats an unchanged semantic prefix as an offense.
- Confirm deleting every refusal-next-step baseline fragment is a large overclaim risk because the diff also changes help text and adds some messages outside the baseline-covered set.
Refuted
- The cited focused refusal-next-step test proves the newly deleted policy baselines are all obsolete.; refuted because: That test exercises three policy cases, while dozens of baseline files are deleted across many distinct CLI refusal families; focused success alone is not a complete oracle for those deletions.
- The change requires a new architecture-level abstraction for all refusal remediation text.; refuted because: The smallest complete boundary is already present for generic missing-value and numeric parsing, while command-specific remedies depend on local semantics; a global remedy model would enlarge scope without establishing a concrete defect.
Parked follow-ups
- Many repeated next-step phrases bypass the existing shared value/numeric helpers, creating drift risk without changing semantics.
Evidence gaps
- Removing all listed refusal-next-step policy fragments may hide a remaining source route whose new error still lacks a usable next step.
- Model proof intent was rejected by deterministic validation.
- The late cargo-test receipt is still absent from the supplied packet, and the RIPR sensor failed with exit code 2, so the broad changed-behavior oracle cannot yet be treated as confirmed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmp1dk37XMDiDt4z11j
There was a problem hiding this comment.
Verification questions
- Confirm the diff changes many user-visible exact error strings and deletes dozens of policy baselines, but no completed broad test receipt is available to prove all affected consumers and policy expectations remain green.
- Confirm deleting every refusal-next-step baseline is not proven by the cited three-test refusal_next_step target; the diff spans many distinct refusal families.
- Confirm the diff changes command-facing error strings and removes refusal policy baselines, so downstream consumers matching exact messages may require coordinated updates.
- Confirm the deleted policy baselines are a compatibility-sensitive surface because they encode accepted refusal prefixes across many command families.
- Confirm the cited refusal-next-step test covers only three policy cases while this diff rewrites many distinct CLI refusal families and deletes dozens of baseline fragments.
- Confirm the change applies next-step guidance directly in many command modules rather than through a single boundary formatter.
- Confirm deleting all refusal-next-step baseline files lacks a demonstrated broad policy oracle.
Evidence gaps
- The changed refusal paths update exact assertions, but the supplied cargo-test receipt is absent.
- The late cargo-test receipt is absent, and the ripR sensor failed with exit code 2, so repository-wide compile/test and policy evidence is currently incomplete.
- RIPR sensor evidence is incomplete: ripr failed and cargo-test was scheduled without a completed receipt, so broader route and baseline validity are not fully proven.
- The source-route scan completed, but the required cargo-test receipt is not present in the supplied evidence.
- Model proof intent was rejected by deterministic validation.
…ame a next step (#11539) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmp1dk37XMDiDt4z11j
… wording (#11539) first-pr option errors are reworded in the output-layer PR, which updates these two expectations. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmp1dk37XMDiDt4z11j
|
Review of record, head a129c93 (main merged in). Angles and findings:
Threads: none open. Merge is gated on Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmp1dk37XMDiDt4z11j
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- The acceptance claim that obsolete refusal policy fragments were removed is not backed by completed broad evidence in this packet.
Verification questions
- Confirm the help overview now embeds remediation wording in a machine-catalog description line, which is visible prose rather than a stable machine-readable field.
- Confirm the shared expect_value helper changes every missing-value message routed through it, creating a broad exact-text compatibility change beyond the locally asserted examples.
- Confirm the diff also changes help and non-baseline-covered messages, so baseline deletion alone does not establish that every changed refusal names a valid next step.
- Confirm the 40 deleted policy baselines encode accepted offense prefixes across many command families; deleting them is only safe if the policy scanner proves each rewritten refusal now supplies a next step.
- Confirm deleting every refusal-next-step baseline is broader than the cited focused oracle, so obsolete-baseline claims require the broad policy scan rather than three tests alone.
Parked follow-ups
- Guidance is duplicated directly across parser and runtime modules rather than normalized at a boundary, creating future drift risk across error sites.
Evidence gaps
- The PR changes many exact user-visible error strings, but the cited focused refusal test cannot establish compatibility for every changed consumer or for all deleted policy fragments.
- Model proof intent was rejected by deterministic validation.
- Deleting the refusal-next-step baselines is broader than the cited three-test refusal_next_step proof and lacks a completed broad policy-oracle receipt.
- The public output contract changes broadly across many exact-string consumers, but the available packet does not include a completed broad Rust test receipt.
There was a problem hiding this comment.
Independent review (fresh-context reviewer, head 90dd2fe): REVIEW_INCOMPLETE
Inspected:
- Head metadata and the authoritative PR file list via
pulls/11713/files: 78 files = 37 CLI source files, 4 test files, 1 changelog fragment, and 40 deletedpolicy/refusal-next-step.d/crates__ripr__src__cli__*.txtbaseline fragments.mergeable=true,mergeable_state=blocked. - The candidate's own commits (6):
0b9dd000(the change),2f68f86b(changelog),58eb9d87+90dd2fed(merges ofmain),6268a7b3+a129c933(exact-message test updates). The only delta since the previously reviewed heada129c933is the twomainmerges;mainmoved 51 commits underneath this branch. The PR's own change content is unchanged since that review. - The guard that owns the deleted baselines, read as source rather than inferred from the artifacts:
crates/ripr/tests/refusal_next_step.rs:1-24states the rule the whole diff depends on - "A new message without a cue fails; a fragment entry whose message now has a cue (or was deleted) also fails, so fixing a message means deleting its line." That makes fragment deletion a two-sided discriminator: keep the line and the guard fails it as stale; delete the line while the literal still lacks a cue and the guard fails it as a new offense. The 40 deletions are therefore the sanctioned mechanism, not an unproven coverage gap, and the PR body records thatRIPR_PRUNE_REFUSAL_BASELINE=1pruned nothing further. - The producers behind the changed text, not the diff alone:
crates/ripr/src/cli/parse/value.rsnow emitsmissing value for {flag}; pass a value right after it;crates/ripr/src/cli/commands/gate.rsnow emitsgate could not resolve --out: {err}; pass a path whose directory exists, such as--out target/ripr/gate.json``. Both carry an action cue in the guard'sACTION_OPENERSset at a clause start, so the guard stops treating them as offenses. - Every added line in the 78-file patch that is not a string literal: 43 such lines, all of them
return Err(...),let x = ....map_err(...)or.ok_or_else(...)re-wraps. Thelet before/let after/let leafbindings incrates/ripr/src/cli/commands/agent.rsare pre-existing bindings the diff reformats into closures, not new logic. No new function, error variant, exit code, or control-flow branch was introduced anywhere in the diff. - The exact-string oracle:
crates/ripr/tests/cli_smoke.rs,cli_help_hierarchy.rs,cli_smoke/baseline_path_values.rs,cli_smoke/cli_value_contracts.rsandcrates/ripr/src/cli/commands/check_argv_refusal_tests.rsall carry the new text, andcli_smoke.rsgains a newly asserted--seam-idrefusal case. A pinned old string elsewhere would fail loudly rather than pass vacuously. - Hosted proof on this exact head:
Ripr Rust Small on GitHub Hosted / Rust gatesis stillin_progress(at step 15 of 42,User-text goldens judged by the merge-base matcher). Steps 16-42 have not run, includingBase still merges cleanly(29) andRequired Rust tests(30).Rust-only feature lanesucceeded on the merge-ready event; the21:17run group is entirelyskipped.
Blocking:
- None found.
Non-blocking:
- Hosted Rust proof is incomplete for this head, so the ceiling is REVIEW_INCOMPLETE rather than REVIEW_READY. The gap is missing observation, not a red lane; nothing here argues against landing once
Required Rust testsreports on90dd2fed. - Merge-order coupling with #11716, which touches the same two test files with the opposite expectation. The
first-pr/start-here--gap-ledgerrefusal is produced bycrates/ripr/src/output/first_pr/options.rs::non_empty_arg, a different function fromcrates/ripr/src/cli/parse/value.rs::expect_value. This PR does not touchoutput/first_pr/options.rs, so its assertion"missing value for --gap-ledger"matches its own tree. #11716 does touch that producer and asserts the suffixed form. If #11716 lands first and this PR lands second, the merged tree pairs the suffixed producer with this PR's unsuffixed assertion incrates/ripr/src/cli/mod.rsandcrates/ripr/src/cli/execute.rs, andexecute(CliCommand::FirstPr(args(&["--gap-ledger"])))fails. Landing this PR first is safe; landing it second needs the two assertions taken from #11716's side. - The per-file fragment retention is precise rather than blanket: at this head no
crates__ripr__src__cli__*fragment remains, while theoutput__*andapp__*fragments are untouched, which is consistent with this PR's CLI-only scope.
Not run:
- No Rust build, test, lint, or
cargo xtaskgate was executed. The Rust toolchain on this host is not onPATH, and the shared tree must not be built while concurrent agents hold it. Every source conclusion above is from reading the head SHA through the GitHub API. - The
Rust gateslane was still executing when this review was written, soRequired Rust tests,Golden output contractsandBase still merges cleanlyare unobserved on this head.
Reviewed by an independent Mavis review agent on behalf of the maintainer; bound to head 90dd2fedec2ee66d56257d54757a3e2d68a05c14. Not an approval.
|
Shard 1 on head Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the shared expect_value rewrite broadens missing-value diagnostics across every caller, making downstream exact-text consumers a compatibility surface.
- Confirm help text and some changed refusals are outside the deleted baseline set, so baseline deletion alone cannot establish the full acceptance claim.
- Confirm deleting all refusal-next-step baseline fragments is a policy-wide compatibility change; the available focused test claim does not independently prove every removed fragment is obsolete.
- Confirm the rewritten diagnostics consistently name an actionable next step, including the shared missing-value and numeric-parser routes.
- Confirm deleting all 40 refusal-next-step baseline files is not proven by the cited three-test refusal_next_step target, which covers only three policy cases.
Evidence gaps
- The packet lacks completed broad Rust proof for a large user-visible exact-string change and 40 policy-baseline deletions.
- Model proof intent was rejected by deterministic validation.
- The deleted policy baselines are not fully proven obsolete by the focused test oracle.
- The available packet has no completed broad cargo-test receipt, so it cannot prove all exact-output consumers and all deleted policy fragments remain compatible.
- The packet lacks completed broad Rust proof: RIPR failed with exit code 2, while cargo-test is still receipt-absent despite being scheduled.
|
Review of record, head Angles: message quality (each rewritten CLI refusal names its reason and a concrete next step); baseline bookkeeping (40 Findings: none blocking. The ub-review points ask for broad-suite evidence, which this head now has. The independent review on Evidence on this exact head: Generated by Claude Code |
Requested by Steven · project thread
Governing issue or accepted claim: #11539
Acceptance delta (one sentence): The CLI-layer error and refusal messages that named a failure without a next step now name one, and their baseline fragments are removed.
Rewrites CLI refusal and error messages so each names a next step, and removes the baseline fragments under policy/refusal-next-step.d/ that no longer offend (follow-up to #11539 / #11590).
Local proof:
cargo test -p ripr --test refusal_next_steppasses (3 tests) on the rebased tree;cargo check -p ripr --libclean; RIPR_PRUNE_REFUSAL_BASELINE=1 pruned nothing further. Not run locally: cli_smoke, cli_help_hierarchy,cargo xtask precommit(shared target lock contention); hosted CI is the full runner.Generated by Claude Code